import type { TableData } from '@arco-design/web-vue/es/table/interface';
import http from '@/utils/http'
export interface ContentDataRecord {
  x: string;
  y: number;
}
/**
 * 查询请求体
 */
export interface QueryPopularRequest {
  type?: string;
}


export function queryContentData() {
  return http.get<ContentDataRecord[]>('/admin/mock/workplace-content-data');
}


export function queryPopularList(params: QueryPopularRequest) {
  return http.get<TableData[]>('/admin/mock/popular-list', { params });
}
